package java9_22.Test2;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class User3 {
    public static void main(String[] args) {
        ServerSocket s=null;
        try {
            s=new ServerSocket(9999);
            while (true){
                Socket s1 = s.accept();
                User1 u=new User1(s1);
                u.start();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            try {
                s.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
